home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1998 / MacHack 1998.toast / Programming Contest / MacHack Contest.sit / MacHack Contest / Problems Folder / Problem 07 - Graph / Solution.h < prev    next >
MacBinary  |  1998-06-14  |  1.3 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Sun Jun 14 18:12:07 1998, modified Sun Jun 14 18:12:07 1998, creator 'CWIE', type ASCII, 558 bytes "Solution.h" , at 0x2ae 410 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 53 6f 6c 75 74 69 | 6f 6e 2e 68 00 00 00 00 |..Soluti|on.h....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 00 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 02 2e 00 | 00 01 9a b1 a9 fb 37 b1 |........|......7.|
|00000060| a9 fb 37 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..7.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 b4 3d 00 00 |........|.....=..|
|00000080| 23 69 66 6e 64 65 66 20 | 5f 5f 53 4f 4c 55 54 49 |#ifndef |__SOLUTI|
|00000090| 4f 4e 5f 48 5f 5f 0d 23 | 64 65 66 69 6e 65 20 5f |ON_H__.#|define _|
|000000a0| 5f 53 4f 4c 55 54 49 4f | 4e 5f 48 5f 5f 0d 0d 2f |_SOLUTIO|N_H__../|
|000000b0| 2f 20 44 6f 20 6e 6f 74 | 20 6d 6f 64 69 66 79 20 |/ Do not| modify |
|000000c0| 74 68 69 73 20 66 69 6c | 65 0d 0d 23 69 6e 63 6c |this fil|e..#incl|
|000000d0| 75 64 65 20 3c 4d 61 63 | 54 79 70 65 73 2e 68 3e |ude <Mac|Types.h>|
|000000e0| 0d 23 69 6e 63 6c 75 64 | 65 20 3c 46 69 6c 65 73 |.#includ|e <Files|
|000000f0| 2e 68 3e 0d 0d 23 69 66 | 64 65 66 20 5f 5f 63 70 |.h>..#if|def __cp|
|00000100| 6c 75 73 70 6c 75 73 0d | 65 78 74 65 72 6e 20 22 |lusplus.|extern "|
|00000110| 43 22 20 7b 0d 23 65 6e | 64 69 66 20 2f 2f 20 5f |C" {.#en|dif // _|
|00000120| 5f 63 70 6c 75 73 70 6c | 75 73 0d 0d 74 79 70 65 |_cpluspl|us..type|
|00000130| 64 65 66 20 55 49 6e 74 | 33 32 20 2a 55 49 6e 74 |def UInt|32 *UInt|
|00000140| 33 32 41 72 72 61 79 50 | 74 72 3b 0d 74 79 70 65 |32ArrayP|tr;.type|
|00000150| 64 65 66 20 55 49 6e 74 | 33 32 20 20 2a 2a 55 49 |def UInt|32 **UI|
|00000160| 6e 74 33 32 41 72 72 61 | 79 48 61 6e 64 6c 65 3b |nt32Arra|yHandle;|
|00000170| 0d 0d 70 61 73 63 61 6c | 20 76 6f 69 64 20 47 72 |..pascal| void Gr|
|00000180| 61 70 68 49 6e 69 74 28 | 20 48 61 6e 64 6c 65 20 |aphInit(| Handle |
|00000190| 2a 67 72 61 70 68 2c 20 | 55 49 6e 74 33 32 20 76 |*graph, |UInt32 v|
|000001a0| 65 72 74 69 63 69 65 73 | 20 29 3b 0d 70 61 73 63 |erticies| );.pasc|
|000001b0| 61 6c 20 76 6f 69 64 20 | 47 72 61 70 68 41 64 64 |al void |GraphAdd|
|000001c0| 44 69 72 65 63 74 65 64 | 45 64 67 65 28 20 48 61 |Directed|Edge( Ha|
|000001d0| 6e 64 6c 65 20 67 72 61 | 70 68 2c 20 55 49 6e 74 |ndle gra|ph, UInt|
|000001e0| 33 32 20 76 65 72 74 65 | 78 31 2c 20 55 49 6e 74 |32 verte|x1, UInt|
|000001f0| 33 32 20 76 65 72 74 65 | 78 32 20 29 3b 0d 70 61 |32 verte|x2 );.pa|
|00000200| 73 63 61 6c 20 76 6f 69 | 64 20 47 72 61 70 68 46 |scal voi|d GraphF|
|00000210| 69 6e 64 52 6f 75 74 65 | 28 20 48 61 6e 64 6c 65 |indRoute|( Handle|
|00000220| 20 67 72 61 70 68 2c 20 | 55 49 6e 74 33 32 20 76 | graph, |UInt32 v|
|00000230| 65 72 74 65 78 31 2c 20 | 55 49 6e 74 33 32 20 76 |ertex1, |UInt32 v|
|00000240| 65 72 74 65 78 32 2c 20 | 55 49 6e 74 33 32 41 72 |ertex2, |UInt32Ar|
|00000250| 72 61 79 48 61 6e 64 6c | 65 20 2a 76 65 72 74 69 |rayHandl|e *verti|
|00000260| 63 69 65 73 20 29 3b 0d | 0d 23 69 66 64 65 66 20 |cies );.|.#ifdef |
|00000270| 5f 5f 63 70 6c 75 73 70 | 6c 75 73 0d 7d 0d 23 65 |__cplusp|lus.}.#e|
|00000280| 6e 64 69 66 20 2f 2f 20 | 5f 5f 63 70 6c 75 73 70 |ndif // |__cplusp|
|00000290| 6c 75 73 0d 0d 23 65 6e | 64 69 66 20 2f 2f 20 5f |lus..#en|dif // _|
|000002a0| 5f 53 4f 4c 55 54 49 4f | 4e 5f 48 5f 5f 0d 00 00 |_SOLUTIO|N_H__...|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00000310| 2b 30 38 30 30 31 35 3a | 35 35 3a 33 32 20 31 39 |+080015:|55:32 19|
|00000320| 39 38 00 00 00 00 00 00 | 00 00 b1 78 6a 77 00 00 |98......|...xjw..|
|00000330| 0a 53 6f 6c 75 74 69 6f | 6e 2e 68 4d 61 63 48 61 |.Solutio|n.hMacHa|
|00000340| 63 6b 20 43 6f 6e 74 65 | 73 74 31 2e 73 69 74 69 |ck Conte|st1.siti|
|00000350| 02 4a 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |.JPartSI|T!......|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 b1 b0 40 8e 00 00 | 00 00 00 00 01 9a 00 00 |....@...|........|
|00000380| 00 00 29 bc 7f 92 00 00 | 00 00 20 52 65 3a 20 46 |..).....|.. Re: F|
|00000390| 6f 6c 64 65 72 20 48 69 | 65 72 61 72 63 68 79 20 |older Hi|erarchy |
|000003a0| 44 75 70 6c 69 63 61 74 | 69 6f 6e 0d 00 00 00 00 |Duplicat|ion.....|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 04 36 35 37 a4 00 00 |........|..657...|
|000003d0| 00 00 00 00 00 00 00 00 | 00 01 be ab 00 00 05 f2 |........|........|
|000003e0| 00 00 02 90 02 07 31 32 | 2f 35 2f 39 38 34 30 30 |......12|/5/98400|
|000003f0| 30 32 31 3a 30 31 3a 35 | 36 20 31 39 39 38 00 00 |021:01:5|6 1998..|
|00000400| 00 00 00 04 00 01 00 01 | 00 00 00 48 00 0a 47 65 |........|...H..Ge|
|00000410| 6e 65 76 61 00 a0 40 0c | 6a 7a 00 53 5c 1a 00 00 |neva..@.|jz.S\...|
|00000420| 01 de 39 60 01 d0 97 58 | 01 de 01 de 00 00 00 06 |..9`...X|........|
|00000430| 00 02 00 2c 00 08 01 67 | 01 88 00 2c 00 08 01 67 |...,...g|...,...g|
|00000440| 01 88 b1 a9 b4 e7 00 00 | 01 7e 00 00 01 e8 00 00 |........|.~......|
|00000450| 00 04 01 00 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|00000460| 00 00 00 46 01 cf ef 84 | 1f 38 00 00 00 1c 00 46 |...F....|.8.....F|
|00000470| 00 01 4d 57 42 42 00 00 | 00 12 4d 50 53 52 00 00 |..MWBB..|..MPSR..|
|00000480| 00 1e 03 f0 ff ff 00 00 | 00 00 00 00 00 00 03 ed |........|........|
|00000490| ff ff 00 00 00 08 01 d0 | 97 4c 00 00 00 00 00 00 |........|.L......|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+